<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'itemReport.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap.min.css" />

	<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
	<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap-theme.min.css" />
  </head>
  <body>
    <div style="width:48%;  margin: 0 auto;margin-top:15px;float:right">
  		<table class="table table-bordered">
  			<tr class="info">
  				<td width="200" style='text-align:center;vertical-align:middle'>日期(天)</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>总下单数</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>代理下单数</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>下单比例</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>总销售额</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>代理销售额</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>销售额比例</td>
  			</tr>
			<c:forEach items="${dailiOrderRateList}" var="daili">
		 	<tr >
		    	<td style='text-align:center;vertical-align:middle'>${daili.dimensionDate}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderTotalNum}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderDailiNum}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.dailiRate}%</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderTotalPrice}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderDailiPrice}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.dailiPriceRate}%</td>
		  	</tr>
		  	</c:forEach>
		</table>
	</div>
    <div style="width:48%;  margin: 0 auto;margin-top:15px;float:left">
  		<table class="table table-bordered">
  			<tr class="info">
  				<td width="200" style='text-align:center;vertical-align:middle'>日期(月)</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>总下单数</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>代理下单数</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>下单比例</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>总销售额</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>代理销售额</td>
  				<td width="200" style='text-align:center;vertical-align:middle'>销售额比例</td>
  			</tr>
			<c:forEach items="${dailiOrderRateMonthList}" var="daili">
		 	<tr >
		    	<td style='text-align:center;vertical-align:middle'>${daili.dimensionDate}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderTotalNum}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderDailiNum}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.dailiRate}%</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderTotalPrice}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.saleOrderDailiPrice}</td>
		    	<td style='text-align:center;vertical-align:middle'>${daili.dailiPriceRate}%</td>
		  	</tr>
		  	</c:forEach>
		</table>
	</div>
  </body>
</html>